﻿@model CarsRegistrationService.Models.ViewModel.RequestProcessViewModel
@{
    ViewBag.Title = "Обработка заявки";
}
@*<script src="@Url.Content("~/Content/Scripts/System/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/Scripts/System/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>*@

<script src="@Url.Content("~/Content/Scripts/Request.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    @Html.HiddenFor(model => model.Request.ID)
    <div id="slider">
        <ul id="RequestImages">
            @foreach (var img in Model.Request.Images)
            {
                <li>
                    <div class="viewer">
                        <div class="reel">
                            <div id="gallery">
                                <div class="slide">
                                    <a href="@Url.Content(string.Format("{0}{1}", "~/Mobile/RequestData/", img))" target="_blank">
                                        <img src="@Url.Content(string.Format("{0}{1}", "~/Mobile/RequestData/", img))" width="590" height="300" alt="" /></a>
                                </div>
                            </div>
                        </div>
                    </div>
                </li>
            }
        </ul>
    </div>
   @* <script type="text/javascript">
        $('#slider').slidertron({
            viewerSelector: '.viewer',
            reelSelector: '.viewer .reel',
            slidesSelector: '.viewer .reel .slide',
            advanceDelay: 3000,
            speed: '0'
        });
    </script>*@
    @*<script type="text/javascript">
        $('#gallery').poptrox({
            preload: true,
            overlayColor: '#222222',
            overlayOpacity: 0.75,
            popupCloserBackgroundColor: '#560969',
            popupBackgroundColor: '#FFFFFF',
            popupTextColor: '#aaaaaa',
            popupPadding: 20
        });
    </script>*@
    <br/>
            Html.RenderPartial("PersonPassportTable", Model.PersonPassport);
            Html.RenderPartial("VehiclePassportTable", Model.VehiclePassport);
    <p>
        <input type="submit" value="Сохранить" />
    </p>
}